<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Mall_text.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Mall_message_config.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '充值设置',
                    name: 'Mall_message_config',
                    url: "/Mall_message_config/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {"full":"","delivery":"","content":"",},
                editFormOptions: [[{"title":"单条价格","field":"price","type":"text"},
                                 {"title":"充值金额","field":"full","type":"text"},],
                                 [{"title":"充送条数","field":"delivery","type":"text"}]
                                ],
                searchFormFields: {"price":"","createDate":"","full":"",},
                searchFormOptions: [[{"title":"单条价格","field":"price","type":"text"},{"title":"创建日期","field":"createDate","type":"datetime"}]],
                columns: [{field:'id',title:'id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'price',title:'单条价格',type:'string',width:220,align:'left',sortable:true},
                       {field:'full',title:'充值金额',type:'string',width:90,align:'left'},
                       {field:'delivery',title:'充送条数',type:'string',width:90,align:'left'},
                       {field:'createDate',title:'创建日期',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'creator',title:'创建者',type:'string',width:120,align:'left'},
                       {field:'modifier',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'modifyDate',title:'修改日期',type:'datetime',width:120,align:'left',sortable:true},
                      //  {field:'modifyID',title:'修改ID',type:'int',width:120,hidden:true,align:'left'}
                      ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
